<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let obj1 = {
            name: 'zs',
            age: '33'
        }

        console.log(Object.is('name', 'name'))

        let obj2 = {
            text: 'good morning'
        }

        console.log(Object.assign(obj1, obj2))
        console.log(obj1)
        // 会改变原对象


        let obj3 = {
            rob: '这碗面又大又圆',
            obj5: {
                new: 'fanfan liangliang'
            }
        }

        let obj4 = {
            ...obj1,
            ...obj3
        }


        console.log(obj4)

        let obj6 = Object.assign(obj1, obj3)


    </script>
</body>

</html>